package com.skwyb.form.constants;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 * @date 2017/3/8
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum ResultCode {
    SUCCESS(0, "success"),
    FAIL(-1, "failed"),
    PASSWORD_ERROR(1010001, "密码错误"),
    USER_EXISTS(1010002, "用户不存在"),
    SESSION_TIME_OUT(1010003, "登录超时"),
    FILE_FORMAT_ERROR(1010004, "文件格式不正确"),
    FILE_UPLOAD_ERROR(1010005, "文件上传失败"),
    PARAM_NULL(1010006, "参数为空"),
    PARAM_NOT_EQUALS(1010007, "参数不相等"),
    PARAM_ILLEGAL(1010008, "参数非法"),
    NOT_FOUND(1010009, "对象不存在"),
    REPEAT_NAME(2010001, "名称重复"),
    REPEAT_ACCOUNT(2010002, "账号重复"),
    VERIFY_CODE_ERROR(2010003, "验证码不正确"),
    VERIFY_CODE_TIME_OUT(2010004, "验证码已失效"),
    IS_SYSTEM(3010001, "系统预置参数，不能删除");

    private int code;
    private String message;
}
